<?php
/**
 * Created by PhpStorm.
 * User: wangyuxiang
 * Date: 2018/12/24
 * Time: 5:21 PM
 */

namespace App\Http\Controllers;


class TestController extends Controller
{
     public function test(){
         \Illuminate\Support\Facades\View::addExtension('html', 'php');
         return response(view('index'));
     }


    public function test2(){
       return json_encode(['wangyuxiang']);
    }

}